<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script type="text/javascript">



    window.onload = function () {
      var cat = document.getElementById("cat");
      cat.onclick = function () {
        var img = document.createElement("img");
        document.body.appendChild(img);
        img.src = "img/1.png";
        img.width = 100;

      }

    }

  </script>
</head>
<body>
<button id="cat">增加猫咪</button>
</body>
</html>
